home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir39 / adq212.zip / ADQ.DOC next >
Text File  |  1992-09-03  |  22KB  |  460 lines

  1.                       ADVANCED DOS QUIZ DOCUMENTATION
  2.  
  3.  
  4. 1.  What is Advanced DOS Quiz?
  5. 2.  Running Advanced DOS Quiz
  6. 3.  Advanced DOS Quiz Questions
  7. 4.  Registration Info
  8.  
  9.                          WHAT IS ADVANCED DOS QUIZ?
  10.  
  11.  
  12.      If you thought that DOS Quiz was hard, just give Advanced DOS Quiz (ADQ) a
  13. try!  If you thought that DOS Quiz was easy, then try out the questions in ADQ
  14. and see your 100% score turn into a 50% score!
  15.  
  16.      Like DOS Quiz, ADQ is quick and easy way to use.  It can be used to test
  17. anyone on their knowledge of very advanced DOS commands.  ADQ is completely
  18. taken on a DOS computer, and is completely self-contained.  It takes the user
  19. through a series of 20 questions, asking the user to perform unusual, difficult,
  20. or arcane tasks in DOS.  Unlike DOS Quiz, all 20 questions in ADQ are
  21. categorized as Advanced.
  22.  
  23.      At the end of ADQ, a score screen is displayed, which shows a listing of
  24. all of the questions asked, what the main concept of each question was, and
  25. whether the user answered the question correctly or not.  The number and
  26. percentage correct of the all questions asked is also displayed.  The user is
  27. given the chance to save a scoresheet to a file or to a printer.
  28.  
  29.      ADQ is probably too advanced to be use as a test in an office environment,
  30. though if a position requires a high degree of DOS skill, this may be just the
  31. ticket.  Otherwise, ADQ should be used as a test of your total DOS knowledge,
  32. and as a tutor for some of DOS's more obscure commands.  As with DOS Quiz, ADQ
  33. supports many different syntactical uses of each command and may teach you new
  34. ways of doing old things.
  35.  
  36.      However, it does not cover all switches of all commands.  There are, after
  37. all, only 20 questions.  So if a particular command piques your interest, see
  38. your DOS manual or on-line help (DOS 5.0 and above) for more on that command.
  39.  
  40.  
  41.                           RUNNING ADVANCED DOS QUIZ
  42.  
  43.      Running ADQ is really quite simple - all you need to do is type ADQ at the
  44. DOS prompt and away you go.  The program is completely self-contained, so no
  45. outside files are needed.  The program is small, so it will run on nearly any
  46. DOS machine.  
  47.  
  48.      As with DOS Quiz, ADQ works with either a color or monochrome monitor.
  49. ADQ will try to use color first and will jump down to monochrome if color is
  50. not available.  Monochrome monitors that emulate color monitors (such as b/w 
  51. VGA) will work fine in color mode.  The use of color in the program has been 
  52. kept to a minimum to allow usage on a wide range of computers.  If ADQ does 
  53. not choose the monochrome mode and you wish to force it into monochrome mode,
  54. or you do not care for ADQ's color scheme, type "adq /m" at the DOS prompt.
  55. Note that on color systems, /m will only work if your video adapter can
  56. emulate monocrome (for example, most CGA cards cannot).
  57.  
  58.      Note: As of Version 1.1, ADQ detects if you are using EGA 43-line mode or
  59. VGA 50-line mode before starting up.  Though DOSQUIZ uses 25-line mode, the 
  60. line mode you started ADQ in will be reset when you leave.
  61.  
  62.      After typing in ADQ, an intro screen will appear.  After pressing any key
  63. as requested, the user will be prompted for his or her name and Social Security
  64. Number.  This is for score-sheet identification purposes.  The user is asked to
  65. verify his or her entry.  An instruction screen will then appear.  After reading
  66. the instructions and pressing any key, the quiz begins.
  67.  
  68.      After finishing 20 questions, the score screen will appear.  Three 
  69. function keys are active here.  F1 will print a scoresheet out on a parallel
  70. printer in port LPT1.  F2 will prompt you for a filename to save a score-
  71. sheet to (with the user's input name as the default filename).  If the filename
  72. given exists, you will be given a chance to change your choice.  F3 quits the
  73. score screen and the user will be asked if the quiz is to be taken again.  This
  74. is a Yes or No question.  If Yes, the screen will go back to the Name/SSN 
  75. screen.  If No, then ADQ will return control to DOS.
  76.  
  77.      If you press F1 and the printer is not ready to print for some reason, ADQ
  78. will alert you to the problem and ask you to try again.  Note that on many 
  79. systems, if the printer is attached properly but turned off, no error will be
  80. detected.
  81.  
  82.      If you do not know the answer to a question, you can either guess or just 
  83. press ENTER to skip answering.  ADQ will mark the question as being incorrectly
  84. answered and move on.
  85.  
  86.                          ADVANCED DOS QUIZ QUESTIONS
  87.  
  88.      The following is a listing of all questions asked in ADQ, and their correct
  89. responses.  Note that though the "correct" answers are all presented here in
  90. uppercase, all variations of upper and lower case are valid, as in DOS.  Note
  91. also that though they are not listed as valid responses, spaces are not required
  92. before switches.  For example, CHKDSK/V is the same as CHKDSK /V.  No spaces are
  93. required, either, when redirection is used, though not all of these responses
  94. are listed.  The following two commands are the same: DEBUG<TEST.SCR and
  95. DEBUG < TEST.SCR.  ADQ recognizes all such combinations.
  96.  
  97.  
  98. 1.  Transfer system files to a diskette
  99.  
  100. The user will be asked to type a command that will transfer the system files
  101. from the current hard disk to the diskette in drive A.  Though not mentioned in
  102. the Quiz, these files are the hidden files IO.SYS and MSDOS.SYS and 
  103. COMMAND.COM.  This command is usually used to create a bootable diskette after
  104. a diskette has been formatted.  As of DOS Version 5.0, the system files do not
  105. have to be contiguous files and they do not have to be at the front of the 
  106. diskette physically.  Previous versions, however, do have these requirements.
  107. This may require you to delete files from the diskette before SYS will work
  108. properly.  The valid answers are:
  109.      
  110.      SYS A:    SYS C: A:      SYS \ A:       SYS C:\ A:
  111.  
  112.  
  113. 2.  Use CHKDSK to show all files on drive, plus memory
  114.  
  115. The user will be asked to type the command that will show all files on the
  116. current drive, report disk usage, and report memory usage.  CHKDSK is an
  117. extremely useful command for checking the integrity of their hard drives and
  118. diskettes.  For many pre-DOS 5.0 users, it is also the only way to find out 
  119. how much memory is available.  The valid responses are:
  120.  
  121.      CHKDSK /V      CHKDSK /V C:   CHKDSK /V C:\       CHKDSK C: /V
  122.      CHKDSK C:\ /V  CHKDSK /V \    CHKDSK \ /V
  123.  
  124. If a \ is given as part of any command, the CHKDSK command will print "File not
  125. found" at the end of the listing - ADQ will, too.
  126.  
  127.  
  128. 3.  Use ECHO to dial a phone number with a modem
  129.  
  130. The user will be told to assume that there is a modem installed as COM1.  The
  131. user will be told to use the ECHO command and the Hayes-compatible AT command-
  132. set to dial the number 555-1212.  This method of communicating with your modem
  133. is a quick and easy way to create an autodialer.  Placed in a batch file with
  134. branches for different command line input, the number of phone numbers you 
  135. could autodial with commands such as this are almost unlimited.  The valid 
  136. answers are:
  137.  
  138.      ECHO ATDT5551212 > COM1       ECHO ATDT 5551212 > COM1
  139.      ECHO ATDT5551212 > COM1:      ECHO ATDT 5551212 > COM1:
  140.  
  141. In addition, the ATDP command may be used in place of ATDT, for use with pulse-
  142. dialing.  Also, a dash (-) may be placed in between the 555 and the 1212.
  143.  
  144.  
  145. 4.  Delete all two-character files with wildcards
  146.  
  147. The user will be placed in the C:\QUIZ directory and be asked to use a DOS
  148. command and wildcards to delete all files that have a two-letter filename.  This
  149. is probably one of the easier questions in ADQ.  Understanding DOS's use of 
  150. wildcards is required learning if you want to become a DOS poweruser.  These
  151. little charracters can do in one command what could take literally hundreds
  152. of commands typed in on the command line.  Valid responses are:
  153.  
  154.      DEL ??         DEL .\??       DEL ..\QUIZ\??      DEL \QUIZ\??
  155.  
  156. In addition, the ERASE command may replace the DEL command.  Also, the 
  157. directory and/or file specification may be preceded by C:.
  158.  
  159.  
  160. 5.  Use LABEL or VOL to show volume label
  161.  
  162. The user will be asked to type the command that will allow them to see the
  163. volume label of the current drive (C).  The user is warned not to use the DIR
  164. command to accomplish this task.  That would be too easy.  The user is also told
  165. not to try to change the volume label.  Valid responses are:
  166.  
  167.      LABEL          LABEL C:       VOL       VOL C:
  168.  
  169. The difference between the LABEL command and the VOL command is that the LABEL
  170. command automatically asks you for a new volume label, whereas VOL merely shows
  171. you the volume label.  By passing LABEL a new volume label, the label is changed
  172. without prompting.  As ADQ uses DOS 5.0 responses, it will show the volume
  173. serial number as well.  This will not happen on all versions of DOS.
  174.  
  175.  
  176. 6.  Use COPY to combine two files into one
  177.  
  178. The user will be asked to join the files FILE1.DOC and FILE2.DOC into one file,
  179. entitled FILE3.DOC, using the COPY command.  The user is advised that the files
  180. are all in or to be in the current directory, C:\QUIZ, and is warned not to use
  181. any pathnames in the command.  The reason that pathnames are not used here is
  182. because of the overwhelming number of possible valid responses to check for when
  183. pathnames are permitted.  For ADQ's purposes, the following is the valid
  184. response:
  185.  
  186.      COPY FILE1.DOC+FILE2.DOC FILE3.DOC
  187.  
  188. Note that ADQ will allow a space on either or both sides of the + sign.  Also,
  189. since it does not explicitly state which file's contents are to be first in the
  190. destination file, placing FILE2.DOC before FILE1.DOC in the above answer is also
  191. correct.
  192.  
  193. 7.  Create a COM file with DEBUG and redirection
  194.  
  195. The user will be told to type in the command that will redirect the contents of
  196. the file TEST.SCR in the C:\QUIZ directory to the DEBUG command.  The user is
  197. warned not to use the TYPE command.  Knowing how to use this command is very 
  198. useful if you read a lot of computer magazines that provide free programs in
  199. the form of DEBUG scripts.  Some very useful utilities come from those pages.
  200. Valid responses are:
  201.  
  202.      DEBUG < TEST.SCR              DEBUG < .\TEST.SCR  
  203.      DEBUG < ..\QUIZ\TEST.SCR      DEBUG < \QUIZ\TEST.SCR
  204.  
  205. In DOS, the command TYPE TEST.SCR | DEBUG has the same effect, but this question
  206. was not intended to be a test of the use of TYPE.  The filename/pathname may be 
  207. preceded by C:.
  208.  
  209.  
  210. 8.  Use FIND to find strings in a file
  211.  
  212. The user is asked to find the string "DOS QUIZ" in the file TEST.DOC in the
  213. current directory, C:\QUIZ.  The user is warned not to use redirection in the
  214. command.  The following are valid responses:
  215.  
  216.      FIND "DOS QUIZ" TEST.DOC           FIND "DOS QUIZ" .\TEST.DOC
  217.      FIND "DOS QUIZ" ..\QUIZ\TEST.DOC   FIND "DOS QUIZ" \QUIZ\TEST.DOC
  218.  
  219. Using redirection, the following command would be valid: 
  220.      TYPE TEST.DOC | FIND "DOS QUIZ"
  221. As with question 7, however, this question is not a test of the use of TYPE.
  222. The filename/pathname portion of the command may be preceded by C:.
  223.  
  224.  
  225. 9.  Show files in a directory with DIR and wildcards
  226.  
  227. Another relatively simple command, the user is asked to show all files in the
  228. current directory, C:\QUIZ, that have the letter D as the first letter of their
  229. filename and extension.  The user is warned not to use a pathname, for the
  230. reason stated in question 6.  The following are valid responses:
  231.  
  232.      DIR D*.D*      DIR D???????.D*     DIR D*.D??     DIR D???????.D??
  233.  
  234. The entire filename portion of the command may be preceded by C:.
  235.  
  236.  
  237. 10.  Make a file read-only
  238.  
  239. The user is asked to make the file TEST.DOC in the current directory, C:\QUIZ, a
  240. read-only file.  Use this command to protect a file from unwanted modification
  241. or deletion.  Although any user with much DOS savvy knows how to use this 
  242. command and could remove the read-only flag, this will prevent most casual DOS
  243. users at bay.  Valid answers are:
  244.  
  245.      ATTRIB +R TEST.DOC            ATTRIB +R .\TEST.DOC
  246.      ATTRIB +R ..\QUIZ\TEST.DOC    ATTRIB +R \QUIZ\TEST.DOC
  247.  
  248. The +R may also be placed after the filename.  The filename may be preceded by 
  249. the drive specification C:.
  250.  
  251. 11.  Set the baud rate of a COM port
  252.  
  253. The user is told to set the baud rate of COM1 to 9600.  This is just one of
  254. many different ways to use the MODE command.  It would probably be well worth
  255. your while to learn all of MODE's options.  You may be surprised at what it
  256. can do.  The following are valid responses:
  257.  
  258.      MODE COM1 96             MODE COM1 9600           MODE COM1 BAUD=96
  259.      MODE COM1 BAUD=9600      MODE COM1: 96            MODE COM1: 9600
  260.      MODE COM1: BAUD=96       MODE COM1: BAUD=9600
  261.  
  262.  
  263. 12.  Copy changed files and update archive bit
  264.  
  265. The user is asked to type in the command that will copy all files in the current
  266. directory, C:\QUIZ, with a .DOC extension to the diskette in drive A, but only
  267. those files that have their archive bit set.  At the same time, the archive bit
  268. is to be reset if the file is copied successfully.  This command is useful for
  269. performing incremental backups or as part of a complete backup batch file.
  270. Once a file has been backed up, its archive bit is reset, telling XCOPY to 
  271. skip over the file the next time it hits it.  The next time the file is altered
  272. in any way, the archive bit is set, and it will be caught by XCOPY the next 
  273. time. The following responses are valid:
  274.  
  275.      XCOPY /M *.DOC A:             XCOPY /M .\*.DOC A: 
  276.      XCOPY /M ..\QUIZ\*.DOC A:     XCOPY /M \QUIZ\*.DOC A:
  277.  
  278. The /M switch may be located either after the XCOPY, the *.DOC, or the A:
  279. section of the response and still be considered valid.  The *.DOC section of 
  280. the command may be preceded by C:.
  281.  
  282.  
  283. 13.  Sort a file
  284.  
  285. The user is asked to sort the file FILE1.DOC, placing the sorted data in the
  286. file FILE2.DOC, both of which are in the current directory, C:\QUIZ.  The user
  287. is warned not to use the TYPE command.  The following are valid:
  288.  
  289.      SORT < FILE1.DOC > FILE2.DOC       SORT > FILE2.DOC < FILE1.DOC
  290.  
  291. Using the TYPE command, the following would be valid:
  292.      TYPE FILE1.DOC | SORT > FILE2.DOC
  293. However, as stated in previous questions, this is not a test of the usage of the
  294. TYPE command.
  295.  
  296. 14.  Print out a file to the default printer
  297.  
  298. The user is asked to the COPY command to send the file TEST.DOC in the current
  299. directory, C:\QUIZ, to the standard parallel printer port.  The following are
  300. valid answers:
  301.  
  302.      COPY TEST.DOC PRN             COPY TEST.DOC PRN:
  303.      COPY TEST.DOC LPT1            COPY TEST.DOC LPT1:
  304.      COPY .\TEST.DOC PRN           COPY .\TEST.DOC PRN:
  305.      COPY .\TEST.DOC LPT1          COPY .\TEST.DOC LPT1:
  306.      COPY ..\QUIZ\TEST.DOC PRN     COPY ..\QUIZ\TEST.DOC PRN:
  307.      COPY ..\QUIZ\TEST.DOC LPT1    COPY ..\QUIZ\TEST.DOC LPT1:
  308.      COPY \QUIZ\TEST.DOC PRN       COPY \QUIZ\TEST.DOC PRN:
  309.      COPY \QUIZ\TEST.DOC LPT1      COPY \QUIZ\TEST.DOC LPT1:
  310.  
  311. FYI, the TYPE command could be used in the following manner for the same result:
  312.      TYPE TEST.DOC | PRN
  313. The TEST.DOC portion of the command may be preceded by C:.
  314.  
  315.  
  316. 15.  View a file one screen at a time
  317.  
  318. Finally, no warnings against using TYPE!  The user is asked to use DOS commands
  319. that will display the file TEST.DOC in the current directory, C:\QUIZ, on the
  320. screen one screen at a time.  The following are valid:
  321.  
  322.      MORE < TEST.DOC               MORE < .\TEST.DOC
  323.      MORE < ..\QUIZ\TEST.DOC       MORE < \QUIZ\TEST.DOC
  324.      TYPE TEST.DOC | MORE          TYPE .\TEST.DOC | MORE
  325.      TYPE .\QUIZ\TEST.DOC | MORE   TYPE \QUIZ\TEST.DOC | MORE
  326.  
  327. The TEST.DOC portion of the command may be preceded by C:.
  328.  
  329.  
  330. 16.  Create a file from the keyboard and screen (CON)
  331.  
  332. The user is told to type the command that will allow the user to create the file
  333. TEST.BAT in the current directory, C:\QUIZ.  This type of command is very 
  334. useful for creating notes or short batch files.  The main drawback to using 
  335. one of the commands below is that you arew restricted to editing the current
  336. line only, and then only with backspace.  The following responses are valid:
  337.  
  338.      COPY CON TEST.BAT             COPY CON .\TEST.BAT
  339.      COPY CON ..\QUIZ\TEST.BAT     COPY CON \QUIZ\TEST.BAT
  340.      TYPE CON > TEST.BAT           TYPE CON > .\TEST.BAT
  341.      TYPE CON > ..\QUIZ\TEST.BAT   TYPE CON > \QUIZ\TEST.BAT
  342.  
  343. All above instances of CON may be replaced by CON: as well.  The TEST.BAT 
  344. portion of the command may be preceded by C:.
  345.  
  346.  
  347. 17.  Call a batch file from within another batch file
  348.  
  349. The user is asked to type the command that will allow the batch file GO.BAT to
  350. be called by the batch file being created by a COPY CON type command.  Once
  351. GO.BAT has completed, it should return control to the calling batch file.  The
  352. user is told to assume that GO.BAT is in a directory in the PATH variable.  The
  353. concept behind this question is that as a default, when running a batch file 
  354. from within another batch file, control goes to that second batch file and ends
  355. when that batch file ends.  Using one of these commands (COMMAND /C in all 
  356. versions, CALL in 3.3+), the second batch file will execute, and when it is 
  357. done, the remainder of the orginal batch file will complete.  The following 
  358. are valid:
  359.  
  360.      CALL GO.BAT         COMMAND /C GO.BAT        COMMAND /CGO.BAT
  361.      CALL GO             COMMAND /C GO            COMMAND /CGO
  362.  
  363.  
  364. 18.  Delete files with prompting
  365.  
  366. The user will be asked to type the command that will delete all .DOC files in
  367. the current directory, C:\QUIZ. However, the command should prompt the user
  368. before performing the deletion.  The valid answers are:
  369.  
  370.      DEL *.DOC /P             DEL .\*.DOC /P
  371.      DEL ..\QUIZ\*.DOC /P     DEL \QUIZ\*.DOC /P
  372.  
  373. The ERASE command may replace the DEL command.  The /P MUST be at the end of the
  374. command.  Note that the /P switch is new as of DOS 4.0.  The *.DOC portion of 
  375. the command may be preceded by C:.
  376.  
  377.  
  378. 19.  Make a logical drive out of a directory
  379.  
  380. The user is asked to make the directory C:\QUIZ into a logical drive named D. 
  381. The user will run the command from C:\.  Computers that have multiple users 
  382. often use this command, having SUBST'ed drive letters for directories for each
  383. user's files, like E: for \KAREN and F: for \CHRIS.  The user can get a 
  384. directory listing by typing in his or her drive letter.  See your DOS manual
  385. for more example uses and warnings.  The following are valid:
  386.  
  387.      SUBST D: \QUIZ      SUBST D: QUIZ       SUBST D: C:\QUIZ
  388.  
  389.  
  390. 20.  Reset the DOS PATH environment variable
  391.  
  392. The user is asked to clear the search-path setting.  Once one of these commands
  393. are run, DOS will look for programs in your current working directory only.
  394. The following are valid:
  395.  
  396.      PATH;          PATH ;           PATH=
  397.  
  398.                          ADVANCED DOS QUIZ REGISTRATION
  399.  
  400.                                   Registration
  401.  
  402. ADQ is shareware, and I retain all copyrights to the program.  If you use and
  403. like ADQ, I request that you donate $15 to continue to use it.  If you do, and
  404. also send a diskette (5¼ or 3½ Double or High density), I will include any new
  405. version of ADQ, as well as any bonus utilities I have written at that time. 
  406. Please enclose an extra $1 to cover postage, and be sure to enclose your
  407. address. 
  408.  
  409. If you would like a customized version of ADQ, the cost is $100.  This 
  410. includes one license for the customized product.  Please contact me for a 
  411. quote on time.
  412.  
  413. Site licenses are available at huge discounts.  See the file PRICE.LST for
  414. details.
  415.  
  416.  
  417.                   REGISTRATION NOW EASIER FOR COMPUSERVE USERS
  418.  
  419. You may now register ADQ through CompuServe's Shareware Registration Service.  
  420. To use the service, GO SWREG and register program #24.
  421.  
  422.  
  423.              SPECIAL DISCOUNT FOR USERS OF DOS5QUIZ AND/OR DOSQUIZ
  424.  
  425. DOSQuiz, as mentioned in the introduction, is the basis for the DOSQuiz line.
  426. DOS5Quiz is a DOSQuiz specially designed to test your DOS 5.0 knowledge.  
  427. If you wish to become part of the DOS Quiz family by registering any 
  428. combination of the DOS Quiz programs, you will be getting some great training/
  429. testing tools at a great price.  Any two DOS Quiz programs may be registered 
  430. for $20 (a savings of $10), all three for $25 (a savings of $20).  The same 
  431. diskette and postage charges outlined above apply.  See the enclosed file 
  432. PRICE.LST for and invoice and other ordering info.  The latest versions of 
  433. all DOS Quiz products can be downloaded from the IBMAPP forum on CompuServe.
  434.  
  435.  
  436. Steve Mount 
  437. RR 1 Box 320 
  438. Starksboro, VT  05487-9702 
  439.  
  440.  
  441. Contact me on CompuServe.....: 73720,3404
  442.  
  443. Contact me on America On-Line: Mountain
  444.  
  445. Call for ordering/support....: (802) 453-5273
  446.  
  447. I have fax capability at the above number for orders, but you must call me
  448. to have my fax set up before faxing (it is a card and shares the line with
  449. my answering machine).
  450.  
  451. THE ADQ PROGRAM AND THIS MANUAL ARE COPYRIGHTED DOCUMENTS.  THE OWNER OF THE
  452. COPYRIGHT GIVES OTHERS PERMISSION TO DISTRIBUTE UNALTERED COPIES OF THE PROGRAM
  453. AND DOCUMENTATION TO OTHER INTERESTED PARTIES.  THIS PROGRAM IS NOT IN THE
  454. PUBLIC DOMAIN.  IF YOU USE ADQ, PLEASE PAY THE REGISTRATION FEE.  IT WILL ENSURE
  455. CONTINUED GROWTH OF THE PROGRAM FOR ALL USERS.
  456.  
  457.          ADQ AND DOCUMENTATION COPYRIGHT (C) 1991, 1992 BY STEVE MOUNT 
  458.                               ALL RIGHTS RESERVED. 
  459.  
  460.